// https://nuxt.com/docs/api/configuration/nuxt-config
import { resolve } from "node:path";
export default defineNuxtConfig({
  devtools: { enabled: true },
  //应用配置
  modules: ["@vant/nuxt"],
  nitro: {
    output: {
      dir: resolve(__dirname, "dist"),
      publicDir: resolve(__dirname, "dist"),
    },
    compressPublicAssets: {
      gzip: true,
      brotli: true,
    },
  },
  app: {
    // 根元素Id
    rootId: "domain-services",
    head: {
      title: "nuxt-ts-template",
      link: [{ rel: "icon", href: "/favicon.svg", type: "image/svg+xml" }],
      meta: [
        {
          name: "viewport",
          content:
            "width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,viewport-fit=cover",
        },
      ],
    },
  },
});
